package com.csun.dsms.model.dto.yc;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 金秋实数据查询
 * @description: TODO
 */
@Data
public class YcDeviceQueryDto {


    /**
     * 设备id
     */
    private Integer deviceId;

    private String no;

    private String company; //根据公司查询设备

    private Integer type;

    private String user;

    private String phone; //根据绑定的手机号查询设备

    private Integer isRead;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @Transient
    private Integer pageNum;

    @Transient
    private Integer pageSize;

}
